<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/q_problem_feedback/q_Problem_feedback.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/q_problem_feedback/q_Problem_feedback.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '问题反馈',
                name: 'q_problem_feedback/q_Problem_feedback',
                url: "/q_Problem_feedback/",
                sortName: "ID"
            });
            const editFormFields = ref({"description":"","solve":"","been_resolved":""});
            const editFormOptions = ref([[{"title":"问题描述","field":"description","type":"editor"}],
                              [{"title":"解决办法","field":"solve","type":"editor"}],
                              [{"dataKey":"enable","data":[],"title":"是否解决","required":true,"field":"been_resolved","type":"select"}]]);
            const searchFormFields = ref({"description":"","CreateID":"","been_resolved":""});
            const searchFormOptions = ref([[{"dataKey":"enable","data":[],"title":"是否解决","field":"been_resolved","type":"select"},{"title":"问题描述","field":"description","type":"like"},{"dataKey":"用户","data":[],"title":"创建人id","field":"CreateID","type":"select"}]]);
            const columns = ref([{field:'ID',title:'序号',type:'int',link:true,width:110,readonly:true,require:true,align:'left',sort:true},
                       {field:'description',title:'问题描述',type:'string',width:110,align:'left'},
                       {field:'solve',title:'解决办法',type:'string',width:110,align:'left'},
                       {field:'AuditDate',title:'审核时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'AuditStatus',title:'审核状态',type:'int',width:110,hidden:true,align:'left'},
                       {field:'AuditID',title:'审核人id',type:'int',width:110,hidden:true,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'CreateID',title:'创建人id',type:'int',bind:{ key:'用户',data:[]},width:100,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,hidden:true,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'ModifyID',title:'修改人id',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Modifyer',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'been_resolved',title:'是否解决',type:'int',bind:{ key:'enable',data:[]},width:80,require:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
